<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>用户登录&nbsp;-&nbsp;WakaTu&nbsp;|&nbsp;1 dev</title>
		<link rel="stylesheet" href="static/plugs/bootstrap/css/bootstrap.css" />
		<link rel="stylesheet" href="static/plugs/layui/css/layui.css" />
		<link rel="stylesheet" href="static/theme/default/css/console.css" />
		<link rel="stylesheet" href="static/theme/default/css/animate.css" />
		<link rel="stylesheet" href="static/theme/default/css/login.css" />
 		<script>window.ROOT_URL = '/admin/';</script>
		<script type="text/javascript" src="static/plugs/jquery/jquery-2.0.0.min.js"></script>
		<script type="text/javascript" src="static/plugs/require/require.js"></script>
		<script type="text/javascript" src="static/admin/app.js"></script>
	</head>

	<body>

		<div class="login-container" style="height:100%">

			<div class="clouds clouds-footer"></div>
			<div class="clouds"></div>
			<div class="clouds clouds-fast"></div>

			<div class="header">
				<span>欢迎登录后台管理界面平台</span>
				<ul>
					<li>
						<a href="javascript:void(0)" target="_blank">
							<b style="color:#fff">帮助</b>
						</a>
					</li>
					<li>
						<a href="http://sw.bos.baidu.com/sw-search-sp/software/4bcf5e4f1835b/ChromeStandalone_54.0.2840.99_Setup.exe" target="_blank">
							<b style="color:#fff">推荐谷歌浏览器</b>
						</a>
					</li>
				</ul>
			</div>

			<div class="container" style="top:50%;margin-top:-300px">
                <form onsubmit="return false;" data-time="0.001" data-auto="true" action="check" method="post" class="content layui-form" data-callback="success">
					<div class="people">
						<div class="tou"></div>
						<div id="left-hander" class="initial_left_hand transition"></div>
						<div id="right-hander" class="initial_right_hand transition"></div>
					</div>
					<ul>
						<li>
							
							<input required="required" pattern="^\S{4,}$" title="请输入4位及以上的字符" name="uname" class="login-input username" autocomplete="off" autofocus="autofocus" value="admin" placeholder="请输入用户名/手机号码" style="" type="text"><span style="animation-duration: 0.2s; padding-right: 20px; color: rgb(169, 68, 66); position: absolute; right: 0px; font-size: 12px; z-index: 2; display: block; width: 30px; text-align: center; pointer-events: none; top: 0px; padding-top: 0px; padding-bottom: 0px; line-height: 38px;"></span>
						</li>
						<li>
							
							<input required="required" pattern="^\S{4,}$" title="请输入4位及以上的字符" name="password" class="login-input password" autocomplete="off" value="admin" placeholder="请输入密码" type="password">
						</li>
						<li class="text-center">
							<button type="submit" class="layui-btn layui-btn">立 即 登 入</button>
							<a style="position:absolute;display:block;right:0" href="javascript:void(0)">忘记密码？</a>
						</li>
					</ul>
				</form>
			</div>
			<div class="footer">© 2017</div>
		</div>

		<script type="text/javascript">
			function success(res){
				code=res.code;
				if(code==0){
					res.code=1;
					res.wait=3;
					res.msg="登录成功！";
					$.msg.auto(res, 1);
					return false;
				}
				if(code<0){
					$.msg.auto(res, 1);
				}
				console.log(res.code);
				return false;
			}
			if(window.location.href.indexOf('#') > -1) {
				window.location.href = window.location.href.split('#')[0];
			}
			require(['jquery'], function ($) {
		        $('[name="password"]').on('focus', function () {
		            $('#left-hander').removeClass('initial_left_hand').addClass('left_hand');
		            $('#right-hander').removeClass('initial_right_hand').addClass('right_hand')
		        }).on('blur', function () {
		            $('#left-hander').addClass('initial_left_hand').removeClass('left_hand');
		            $('#right-hander').addClass('initial_right_hand').removeClass('right_hand')
		        });
		    });
		</script>

	</body>

</html>